<?php

$data = array();
$sec_id = $_GET['sec_id'];
$stu_id = $_GET['stu_id'];

if($dbfunc->delete('tb_reg',"student_id = '{$stu_id}' AND sec_id='{$sec_id}'")){
	$data['success'] = true;	
}else{
	$data['success'] = false;
}

echo json_encode($data);